package com.example.mapper;

import com.example.bean.News;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NewsMapper {

    @Select("select * from t_news")
    List<News> getAllNews();

}
